<?=view("job.common.header")?>
<div class="container-fluid">
    <div class="row">
        <div class="col-xs-12 col-sm-12 text-center">
            <img class="logo" src="<?=asset("images/logo1.png")?>">
        </div>
        <div class="col-xs-12 col-sm-12 text-center">
            <input class="input-lg form-control input-border mtop15" type="text" name="phone" value="" placeholder="请输入手机号码">
            <input class="input-lg form-control input-border mtop15" type="password" name="password" value="" placeholder="请输入密码">
            <a class="btn btn-oringe mtop15 evelogin" href="<?=url("job/login/index")?>" onclick="return false;">登  录</a>
        </div>
    </div>
    <div class="bqf text-center mtop15">&copy;2015河南万兆通信科技有限公司</div>
</div>
<script>
    $('.evelogin').click(function(){
        if (!(checkNULL($('input[name=phone]'), "请填写登录手机号") && checkNULL($('input[name=password]'), '请填写密码'))) {
            return false;
        }
        $.post(window.location.href, {'phone':$('input[name=phone]').val(),'password':$('input[name=password]').val()}, function(data){
            showMsg(data.info);
            if (data.status == 1) {
                window.location.href = '<?=url("job/index/index")?>';
            }
        });
        return false;
    });
    function checkNULL(elem, msg) {
        if (elem.val() == '') {
            showMsg(msg);
            elem.focus();
            return false;
        }
        return true;
    }
    function showMsg(msg) {
        layer.open({
                content: msg,
                style: 'background-color:#09C1FF; color:#fff; border:none;',
                time: 2
            });
    }
</script>
<?=view("job.common.footer")?>